package com.knight.service;

import com.knight.model.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Component;

@Component
public class LogService {

    @Autowired
    private MongoTemplate mongoTemplate;

    public void saveLog(Log log) {
        mongoTemplate.insert(log);
    }

}
